package guowei.guliorder.order.feign;

import guowei.common.utils.R;
import guowei.guliorder.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("guliUser")
public interface UserFeign {
    @RequestMapping("/user/memberreceiveaddress/{memberId}/address")
    public List<MemberAddressVo> getAddressBuMemberId(@PathVariable("memberId") Long memberId);

    @RequestMapping("/info/{id}")
    public R getAddressByAddrId(@PathVariable("id") Long id);
}
